<!--
/**
 * @intro: 基本表格.
 */
-->
<template>
  <div class='table'>
    <ui-container>
      3333
    </ui-container>
  </div>
</template>
<script type='text/javascript'>
import httpaxios from 'axios'
import { async } from 'q'
export default {
  name: 'TableBase',
  data () {
    return {
      input: '',
      indexx:0,
      tableData: [
        {
        "No": "232322332",
        "Name": "是打发发发",
        "StartTime": "2019-08-27 13:23:32",
        "EndTime": "2019-08-27 13:47:55",
        "Type": 0,
        "IntegralAmount": 34,
        "Multiple": 0,
        "Remark": "丰盛的感受到分公司",
        "IsEnable": true,
        "IsDelete": true,
        "Id": 2
      },
      {
        "No": "232322332",
        "Name": "是打发发发",
        "StartTime": "2019-08-27 13:23:32",
        "EndTime": "2019-08-27 13:47:55",
        "Type": 0,
        "IntegralAmount": 34,
        "Multiple": 0,
        "Remark": "丰盛的感受到分公司",
        "IsEnable": true,
        "IsDelete": true,
        "Id": 3
      }
      ],
      multipleSelection: []
    }
  },
  mounted () {
    // this.created();
  },
  methods: {
    handleClick(index,row){
        this.open(index)
    },
    open(index) {
      this.$confirm('此操作将永久删除 , 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        this.$message({
          type: 'success',
          message: '删除成功!'
        });
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });          
      });
    },
    start(index){
      // console.log(this.tableData[index])
      this.indexx = index
      if(this.tableData[index]){
        this.tableData[index].stateisok = !this.tableData[index].stateisok
      }
    }
  },
  created () {
      httpaxios.post('api/activitys', {
      "No" : "",
      "IsEnable" : 0,
      "PageIndex" : 1,
      "PageSize" : 10
    })
      .then((dataa) => {
        // console.log(dataa)
      })
  }
}
</script>
<style lang='scss' type='text/scss' rel='stylesheet/scss'>
.container-main{
  width: 100% !important;
}
.table {
}
</style>
